﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BlogFriendGroupAdmin.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.Blog.BlogFriendGroupAdmin" %>
<owc:OwGrid ID="BlogFriendGroupAdmin" runat="server" SkinID="OwGridAdmin" DataSourceID="BlogFriendGroupOds"
    AutoGenerateColumns="False" OwEnableMessageDisplay="True"
    OwMessageDisplayType="InPlace">
    <MasterTableView DataSourceID="BlogFriendGroupOds" DataKeyNames="BlogFriendGroupID">
        <Columns>
            <owct:GridTemplateColumn HeaderText='<%$ OwR:Code %>'>
                <ItemTemplate>
                    <%# Eval("BlogFriendGroupID") %>
                </ItemTemplate>
            </owct:GridTemplateColumn>
            <owct:GridTemplateColumn HeaderText='<%$ OwR:ThumbImage %>' HeaderStyle-Width="200px">
                <ItemTemplate>
                    <div class="ThumbImage">
                        <%#Eval("ThumbImage") %>
                    </div>
                </ItemTemplate>
            </owct:GridTemplateColumn>
            <owct:GridTemplateColumn HeaderText='<%$ OwR:InfoLabel %>'>
                <ItemTemplate>
                    <table width="100%">
                        <tr>
                            <td>
                                <owc:OwR ID="NameOwR" runat="server" OwText="Name" OwSuffix=":"></owc:OwR>
                            </td>
                            <td>
                                <%#Eval("Name")%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR ID="LanguageOwR" runat="server" OwText="Language" OwSuffix=":"></owc:OwR>
                            </td>
                            <td>
                                <%# Eval("LanguageCode") %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR ID="ParentOwR" runat="server" OwText="Parent" OwSuffix=":"></owc:OwR>
                            </td>
                            <td>
                                <%# Eval("ParentID") %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR ID="UserNameOwR" runat="server" OwText="UserName" OwSuffix=":"></owc:OwR>
                            </td>
                            <td>
                                <%--<%#Membership.GetUser((Guid?)Eval("UserID")).ProviderName%>--%>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </owct:GridTemplateColumn>
            <owct:GridTemplateColumn HeaderText='<%$ OwR:Description %>'>
                <ItemTemplate>
                    <%# Eval("Description") %>
                </ItemTemplate>
            </owct:GridTemplateColumn>
            <owct:GridTemplateColumn AllowFiltering="False" FilterControlAltText="Filter TemplateColumn1 column"
                HeaderText="<%$OwR:Modify%>" UniqueName="TemplateColumn1">
                <ItemTemplate>
                    <a href='/Admin/Views/Site/BlogFriendGroupEdit.aspx?id=<%#Eval("BlogFriendGroupID")%>'>
                        <img src='/App_Themes/OpenWeb/OwImages/vi-VN/CommandNameIcons/edit.gif' runat="server"
                            id="UpdateImage" alt="" /></a></ItemTemplate>
            </owct:GridTemplateColumn>
            <owct:GridTemplateColumn AllowFiltering="False" UniqueName="TemplateColumn" HeaderText="<%$OwR:Deleted %>">
                <ItemTemplate>
                    <asp:ImageButton CausesValidation="true" OnClientClick='if(!confirm("Are you sure to  Delete?")) return false'
                        ID="EditDeleteButton1" CommandName="Delete" runat="server" SkinID="OwConfirmButton"
                        ImageUrl="/App_Themes/OpenWeb/OwImages/vi-VN/CommandNameIcons/delete.gif" />
                </ItemTemplate>
            </owct:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</owc:OwGrid>
<owc:OwObjectDataSource ID="BlogFriendGroupOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwBlogFriendGroupsEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwBlogFriendGroupsBLL"
    UpdateMethod="OwUpdate">
    <DeleteParameters>
        <asp:Parameter Name="blogFriendGroupID" Type="Int64" />
    </DeleteParameters>
    <SelectParameters>
        <asp:Parameter Name="parentID" Type="Int64" />
        <asp:Parameter DbType="Guid" Name="userID" />
        <asp:Parameter Name="isDeleted" Type="Boolean" />
        <asp:Parameter Name="languageCode" Type="String" />
        <asp:Parameter Name="sortClause" Type="String" />
        <asp:Parameter Name="sortDirection" Type="String" />
        <asp:Parameter Name="startRowIndex" Type="Int32" />
        <asp:Parameter Name="maximumRows" Type="Int32" />
    </SelectParameters>
</owc:OwObjectDataSource>
